Skip to content

Conversation

@Gunn1
Copy link

@Gunn1 Gunn1 commented Nov 19, 2025

Added systemd for production deployment and automated syncs. Also update image url since the old one no longer worked.

Gunn1 and others added 9 commits June 16, 2025 11:39
- Refactor main.py with logging and configurable execution modes
  - Support one-time runs and continuous daemon mode
  - Add command-line arguments for interval, config, and logging options
  - Replace print statements with structured logging

- Implement comprehensive logging system (logger_config.py)
  - File rotation at 10MB with 10 backups
  - Configurable log levels and output directories
  - Console and file output with timestamps

- Add systemd service and timer for Linux deployment
  - Configurable scheduling (default: hourly)
  - Automated user/permission management

- Create installation script (install_systemd.sh)
  - Sets up /opt/mosyle-snipe-sync with virtual environment
  - Creates system user and proper directory structure
  - Installs systemd service and timer files

- Add requirements.txt for dependency pinning

- Update CLAUDE.md with complete deployment guide
  - One-time and daemon execution examples
  - Systemd installation and management instructions
  - Log viewing and monitoring commands
  - Schedule customization guide

🤖 Generated with Claude Code

Co-Authored-By: Claude <[email protected]>
Consolidate all configuration into a single settings.ini file instead of requiring separate .env file. Remove python-dotenv dependency and update documentation accordingly.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
Switch from %-style to {}-style logging format to prevent ValueError when credentials or configuration values contain % characters. This resolves 'must be followed by' errors when logging messages containing special characters like %@#.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
ConfigParser by default enables interpolation which treats % as special. When credentials contain % characters (like %@#), it fails during parsing. Disable interpolation to allow any special characters in config values.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
Updated Code to work with systemd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants